package com.hexun.es.enums;

/**
 * @description:
 * @author:yrw
 * @date 2018/11/19
 */
public enum ResultEnum {

    SUCCESS(0,"操作成功"),
    FAIL(1,"操作失败");

    private Integer code;
    private String desc;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * 构造函数
     * @param code
     * @param desc
     */
    private ResultEnum(Integer code,String desc){
        this.code=code;
        this.desc=desc;
    }
}
